package com.cskaoyan.bean.user;

import com.cskaoyan.util.DateUtils;
import lombok.Data;

import java.util.Date;

/**
 * \* Description:
 * \
 */
@Data
public class FootprintVo {
    private Integer id;


    private Integer userId;

    private Integer goodsId;

    private String addTime;

    private String updateTime;

    private Boolean deleted;

    public FootprintVo(Footprint footprint) {
        this.id = footprint.getId();
        this.userId = footprint.getUserId();
        this.goodsId = footprint.getGoodsId();
        this.addTime = DateUtils.dateFormat(footprint.getAddTime());
        this.updateTime = DateUtils.dateFormat(footprint.getUpdateTime());
        this.deleted = footprint.getDeleted();
    }
}
